import { createRouter, createWebHashHistory } from 'vue-router'

const Home = () => import('@/views/Home.vue')

let routes = [{
    name: 'Default',
    path: '/',
    redirect: '/home'
},{
    name: 'Home',
    path: '/home',
    component: Home
}]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
    scrollBehavior(){
        return {
            left: 0,
            top: 0
        }
    }
})

export default router